
set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

if(DEFINED PACKAGE_FIND_FILE)
    include(${PACKAGE_FIND_FILE})
endif()

set(CMAKE_CXX_STANDARD 17)

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include
                    ${OHRENDER_PATH}
                    ${OHRENDER_PATH}/include
                    )


add_library(entry SHARED
    napi_init.cpp
    testing/DrawTesting.cpp
    testing/CanvasTesting.cpp
    testing/PictureTesting.cpp
    testing/Testing.cpp
)

add_dependencies(entry OHRender)

target_link_libraries(entry PRIVATE OHRender)

target_link_libraries(entry PUBLIC libace_napi.z.so)
target_link_libraries(entry PUBLIC libace_ndk.z.so)
target_link_libraries(entry PUBLIC libhilog_ndk.z.so)
target_link_libraries(entry PUBLIC libnative_drawing.so)
target_link_libraries(entry PUBLIC libpixelmap_ndk.z.so)
target_link_libraries(entry PUBLIC libnative_window.so)
target_link_libraries(entry PUBLIC libnative_buffer.so)
target_link_libraries(entry PUBLIC libEGL.so)
target_link_libraries(entry PUBLIC libGLESv3.so)



